<div id="breadcrumb">

    <span class="B_crumbBox">

<? 
    $i = 0;
    foreach($breadcrumbs as $crumb) { 
?>

    <? if ($i==0) { ?>

        <span class="B_firstCrumb">
            <a class="B_homeCrumb" href="<?=site_url($crumb['controller'])?>" title="<?=$crumb['title']?>"><?=$crumb['display']?></a>
        </span>

    <? } else if ($i == count($breadcrumbs)-1) { ?>

        /
        <span class="B_lastCrumb">
            <span class="B_currentCrumb"><?=$crumb['display']?></span>
        </span>

    <? } else { ?>

        / <a class="B_crumb" href="<?=site_url($crumb['controller'])?>" title="<?=$crumb['title']?>"><?=$crumb['display']?></a>

    <? } ?>


<? 
    $i++;
    } 
?>

    </span>

</div>
